﻿using YDT_OrderService.Applications.Interfaces;
using YDT_OrderService.Applications.Mappings;

namespace YDT_OrderService.Applications
{
    public static class DependencyInjection
    {
        public static IServiceCollection AddApplication(this IServiceCollection services)
        {
            services.AddScoped<IOrderService, Services.OrderService>();
            services.AddAutoMapper(options => {
                options.AddProfile<MappingProfile>();
            });
            return services;
        }
    }
}
